# -*- coding: utf-8 -*-

import os
import sys

from pydantic_settings import BaseSettings


class EnvSettings(BaseSettings):
    version: str = 'v1.0'

    pool_size: int = 4

    class Config:
        BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
        sys.path.append(BASE_DIR)
        env_file = os.path.join(BASE_DIR, '.env')
        env_file_encoding = 'utf-8'

    pass


env = EnvSettings()

if __name__ == '__main__':
    pass
